/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.rcs.servlets.utils;

import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 *
 * @author ruben
 */
public class FactoryConfig extends XMLConfig {
  
  @XStreamAsAttribute
  private String name;
  @XStreamAsAttribute
  private boolean enabled;
  
  public FactoryConfig(Class clazz, String name, boolean enabled) {
    super(clazz) ;
    this.name = name ;
    this.enabled = enabled ;
  }
  
  /**
   * @return the name
   */
  public String getName() {
    return name;
  }

  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return the enabled
   */
  public boolean isEnabled() {
    return enabled;
  }

  /**
   * @param enabled the enabled to set
   */
  public void setEnabled(boolean enabled) {
    this.enabled = enabled;
  }
  
}
